home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / local / bin / tails-documentation < prev    next >
Encoding:
Text File  |  2012-10-24  |  394 b   |  21 lines

  1. #! /bin/sh
  2.  
  3. if [ $# -ge 1 ]; then
  4.    PAGE="$1"
  5. else
  6.    PAGE='index'
  7. fi
  8.  
  9. WIKI_ROOT='/usr/share/doc/tails/website'
  10. LANG_CODE="`echo ${LANG} | head -c 2`"
  11.  
  12. if [ -r "${WIKI_ROOT}/${PAGE}.${LANG_CODE}.html" ]; then
  13.    FILE="${PAGE}.${LANG_CODE}.html"
  14. elif  [ -r "${WIKI_ROOT}/${PAGE}.en.html" ]; then
  15.    FILE="${PAGE}.en.html"
  16. else
  17.    FILE="${PAGE}.html"
  18. fi
  19.  
  20. exec yelp "file://${WIKI_ROOT}/${FILE}"
  21.